package com.banksoft.admin.dao;

import com.banksoft.admin.entity.AmountLog;
import com.banksoft.admin.entity.Order;
import org.apache.ibatis.annotations.Param;
import org.springframework.stereotype.Repository;

import java.util.List;
import java.util.Map;

/**
 * Created by vanjoger on 2016/12/27.
 */
@Repository
public interface OrderDao {

    List<Order> query(Map map);

    List<Order> queryPage(Map map);

    Integer countPage(Map map);

    List<Order> listOrderByStatus(@Param("status") String status);

    List<Order> listByUserId(@Param("userId") String id);

    List<Order> count(Map map);

    List<Order> listByOrderNo(@Param("orderNo") String orderNo);

    List<Order> listByUserIds(@Param("ids") String[] arrays);


}
